package com.dtx.entity;


import org.beetl.sql.annotation.entity.AssignID;
import org.beetl.sql.annotation.entity.Table;

import java.io.Serializable;
import java.util.Date;

@Table(name="beetlsql.user")
public class User implements Serializable {

    private static final long serialVersionUID = 4311373872459310981L;

    /*
    主键id
    */
    @AssignID("simple")
    private Long id ;
    /*
    年龄
    */
    private Integer age ;
    /*
    删除标记，1为存在，0为删除
    */
    private Integer isDel ;
    /*
     邮箱
     */

    private String email ;
    /*
    用户名字
    */
    private String name ;

    /*
	用户密码
	*/
    private String password ;
    /*
    创建时间
    */
    private Date createDate ;
    /*
    修改时间
    */
    private Date updateDate ;

    public User() {
    }

    public User(Integer age, String email, String name) {
        this.age = age;
        this.email = email;
        this.name = name;
    }


    public User(Long id, Integer age, Integer isDel, String email, String name, String password, Date createDate, Date updateDate) {
        this.id = id;
        this.age = age;
        this.isDel = isDel;
        this.email = email;
        this.name = name;
        this.password = password;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    /**
     * 主键id
     *@return
     */
    public Long getId(){
        return  id;
    }
    /**
     * 主键id
     *@param  id
     */
    public void setId(Long id ){
        this.id = id;
    }

    /**
     * 用户密码
     *@return
     */
    public String getPassword(){
        return  password;
    }
    /**
     * 用户密码
     *@param  password
     */
    public void setPassword(String password ){
        this.password = password;
    }

    /**
     * 年龄
     *@return
     */
    public Integer getAge(){
        return  age;
    }
    /**
     * 年龄
     *@param  age
     */
    public void setAge(Integer age ){
        this.age = age;
    }

    /**
     * 删除标记，1为存在，0为删除
     *@return
     */
    public Integer getIsDel(){
        return  isDel;
    }
    /**
     * 删除标记，1为存在，0为删除
     *@param  isDel
     */
    public void setIsDel(Integer isDel ){
        this.isDel = isDel;
    }

    /**
     * 邮箱
     *@return
     */
    public String getEmail(){
        return  email;
    }
    /**
     * 邮箱
     *@param  email
     */
    public void setEmail(String email ){
        this.email = email;
    }

    /**
     * 用户名字
     *@return
     */
    public String getName(){
        return  name;
    }
    /**
     * 用户名字
     *@param  name
     */
    public void setName(String name ){
        this.name = name;
    }

    /**
     * 创建时间
     *@return
     */
    public Date getCreateDate(){
        return  createDate;
    }
    /**
     * 创建时间
     *@param  createDate
     */
    public void setCreateDate(Date createDate ){
        this.createDate = createDate;
    }

    /**
     * 修改时间
     *@return
     */
    public Date getUpdateDate(){
        return  updateDate;
    }
    /**
     * 修改时间
     *@param  updateDate
     */
    public void setUpdateDate(Date updateDate ){
        this.updateDate = updateDate;
    }

}
